package com.joinway.common.bean.domain.jdyagri;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.joinway.framework.bean.BaseBean;


/**
 * The persistent class for the jdyagri_cart database table.
 * 
 */
@Entity
@Table(name="jdyagri_cart")
@NamedQuery(name="JdyagriCart.findAll", query="SELECT j FROM JdyagriCart j")
public class JdyagriCart extends BaseBean {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="rec_id")
	private int recId;

	@Column(name="can_handsel")
	private int canHandsel;

	@Column(name="extension_code")
	private String extensionCode = "";

	@Lob
	@Column(name="goods_attr")
	private String goodsAttr = "";

	@Column(name="goods_attr_id")
	private String goodsAttrId = "";

	@Column(name="goods_id")
	private int goodsId;

	@Column(name="goods_name")
	private String goodsName;

	@Column(name="goods_number")
	private int goodsNumber;

	@Column(name="goods_price")
	private double goodsPrice;

	@Column(name="goods_sn")
	private String goodsSn;

	@Column(name="is_gift")
	private int isGift;

	@Column(name="is_real")
	private int isReal;

	@Column(name="is_shipping")
	private int isShipping;

	@Column(name="market_price")
	private double marketPrice;

	@Column(name="parent_id")
	private int parentId;

	@Column(name="product_id")
	private int productId;

	@Column(name="rec_type")
	private int recType;

	@Column(name="session_id")
	private String sessionId;

	@Column(name="user_id")
	private int userId;

	public JdyagriCart() {
	}

	public int getRecId() {
		return this.recId;
	}

	public void setRecId(int recId) {
		this.recId = recId;
	}

	public int getCanHandsel() {
		return this.canHandsel;
	}

	public void setCanHandsel(int canHandsel) {
		this.canHandsel = canHandsel;
	}

	public String getExtensionCode() {
		return this.extensionCode;
	}

	public void setExtensionCode(String extensionCode) {
		this.extensionCode = extensionCode;
	}

	public String getGoodsAttr() {
		return this.goodsAttr;
	}

	public void setGoodsAttr(String goodsAttr) {
		this.goodsAttr = goodsAttr;
	}

	public String getGoodsAttrId() {
		return this.goodsAttrId;
	}

	public void setGoodsAttrId(String goodsAttrId) {
		this.goodsAttrId = goodsAttrId;
	}

	public int getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public int getGoodsNumber() {
		return this.goodsNumber;
	}

	public void setGoodsNumber(int goodsNumber) {
		this.goodsNumber = goodsNumber;
	}

	public double getGoodsPrice() {
		return this.goodsPrice;
	}

	public void setGoodsPrice(double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public String getGoodsSn() {
		return this.goodsSn;
	}

	public void setGoodsSn(String goodsSn) {
		this.goodsSn = goodsSn;
	}

	public int getIsGift() {
		return this.isGift;
	}

	public void setIsGift(int isGift) {
		this.isGift = isGift;
	}

	public int getIsReal() {
		return this.isReal;
	}

	public void setIsReal(int isReal) {
		this.isReal = isReal;
	}

	public int getIsShipping() {
		return this.isShipping;
	}

	public void setIsShipping(int isShipping) {
		this.isShipping = isShipping;
	}

	public double getMarketPrice() {
		return this.marketPrice;
	}

	public void setMarketPrice(double marketPrice) {
		this.marketPrice = marketPrice;
	}

	public int getParentId() {
		return this.parentId;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public int getProductId() {
		return this.productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public int getRecType() {
		return this.recType;
	}

	public void setRecType(int recType) {
		this.recType = recType;
	}

	public String getSessionId() {
		return this.sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

}